package com.fz.mapper.system;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.core.toolkit.Constants;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.fz.entity.system.DictionaryValue;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.fz.vo.system.dictionaryValue.DictionaryValueVo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * Mapper 接口
 * </p>
 *
 * @author fh
 * @since 2021-03-23
 */
public interface DictionaryValueMapper extends BaseMapper<DictionaryValue> {
    /**
     * 字典值
     *
     * @param queryWrapper 查询条件
     * @return
     */
    List<DictionaryValueVo> selectDictionaryValueList(@Param(Constants.WRAPPER) LambdaQueryWrapper<DictionaryValue> queryWrapper);

    /**
     * 查询字典值分页
     *
     * @param page               分页
     * @param lambdaQueryWrapper 查询条件
     * @return
     */
    IPage<DictionaryValueVo> findDictionaryValueList(Page<DictionaryValue> page, @Param(Constants.WRAPPER) LambdaQueryWrapper<DictionaryValue> lambdaQueryWrapper);
}
